package com.chaopei.get_confing.controller;

import com.chaopei.get_confing.entity.MyConfig;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author Corday
 * @Date 2021/12/2 14:55
 */
@RestController
public class MyController {
    @Resource
    private MyConfig myConfig;
    // http://locahost:5509/go
    @RequestMapping("/go")
    public  String go(){
        return myConfig.toString();
    }
}
